/* * Template Name: SoftLand * Template URL: https://bootstrapmade.com/softland-bootstrap-app-landing-page-template/ * License: https://bootstrapmade.com/license/ */ (function ($) { "use strict"; // Back to top button $(window).scroll(function() { if ($(this).scrollTop() > 100) { $('.back-to-top').fadeIn('slow'); } else { $('.back-to-top').fadeOut('slow'); } }); $('.back-to-top').click(function(){ $('html, body').animate({scrollTop : 0},1500, 'easeInOutExpo'); return false; }); var siteMenuClone = function() { $('.js-clone-nav').each(function() { var $this = $(this); $this.clone().attr('class', 'site-nav-wrap').appendTo('.site-mobile-menu-body'); }); setTimeout(function() { var counter = 0; $('.site-mobile-menu .has-children').each(function(){ var $this = $(this); $this.prepend('